export default {
    data() {
        return {
            currentrow: null
        }
    },
    methods: {
        // 多选框选中数据
        handleSelectionChange(val) {
            if (val.length > 1) {
                this.$refs.multipleTable.clearSelection();
                this.$refs.multipleTable.toggleRowSelection(val.pop());
            } else if (val.length == 1) {
                this.currentrow = val[0]
                console.log(this.currentrow);
            } else if (val.length == 0) {
                this.currentrow = null
            }
        },
        /**表格单选行资料处理*/
        handleRowClick(row, column, event) {
            this.$refs.multipleTable.toggleRowSelection(row);
        },
    }
}